module.exports = {
  // 基本路径
  publicPath: '/',
  // 输出目录
  outputDir: 'dist',
  // 静态资源目录
  assetsDir: 'static',
  // 开发服务器配置
  devServer: {
    port: 8080,
    open: true,
    proxy: {
      '/api': {
        target: 'http://192.168.0.22:8088',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      },
     '/data-collect': {
        target: 'http://192.168.0.104:18201',
        changeOrigin: true,
        pathRewrite: {
          '^/data-collect': ''
        }
      }
    }
  },
  // webpack配置
  configureWebpack: {
    resolve: {
      alias: {
        '@': require('path').resolve(__dirname, 'src')
      }
    }
  }
};